import { SET_LIST } from '../actions/list'

function list(state = [], action) {
    let NewState = JSON.parse(JSON.stringify(state))
    switch (action.type) {
        case SET_LIST:
            NewState = action.res
            return NewState
        default:
            return state
    }
}

export default list